MdbTxn

Resource class for MDB_txn* handles.

@note Instances of this class are movable, but not copyable. @see http://symas.com/mdb/doc/group__internal.html#structMDB__txn

Constructors

this
this(MDB_txn* handle)

Constructor.

Destructor

~this
~this()

Destructor.

Members

Functions

abort
void abort()

Aborts this transaction.

commit
void commit()

Commits this transaction.

env
MDB_env* env()

Returns the transaction's MDB_env* handle.

handle
MDB_txn* handle()

Returns the underlying MDB_txn* handle.

opUnary
MDB_txn* opUnary()

Returns the underlying MDB_txn* handle.

renew
void renew()

Renews this read-only transaction.

reset
void reset()

Resets this read-only transaction.

Static functions

begin
MdbTxn begin(MDB_env* env, MDB_txn* parent, uint flags)

Creates a new LMDB transaction.

Static variables

default_flags
uint default_flags;

< Default flags

Variables

_handle
MDB_txn* _handle;
Undocumented in source.

Meta